package com.yizhuoyan.his.ao;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 中成药处方需要修改的参数对象
 */
@Data
public class DocPrescriptionAo {
    //药品名称
    @NotBlank(message = "药品名称不能为空")
    private String drugsName;
    //挂号id
    @NotBlank(message = "挂号id不能为空")
    private long registrationRecordId;
    //病例id
    @NotBlank(message = "病例id不能为空")
    private long medicalRecordId;
    //开立医生id
    @NotBlank(message = "开立医生id不能为空")
    private long createDoctorId;
    //处方状态
    @NotBlank(message = "处方状态不能为空")
    private Integer state;
    //处方名称
    @NotBlank(message = "处方名称不能为空")
    private String name;
    //用法
    @NotBlank(message = "用法不能为空")
    private String usageWay;
    //用量
    @NotBlank(message = "用量不可为空")
    private String dosage;
    //频次
    @NotBlank(message = "频次不可为空")
    private String frequency;
    //数量
    @NotBlank(message = "数量不可为空")
    private double amount;
}
